<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>预测结果</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f5f5f5;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }
        .container {
            width: 50%;
            padding: 20px;
            background: #fff;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
            border-radius: 10px;
            text-align: center;
        }
        .university {
            border: 1px solid #ddd;
            padding: 10px;
            margin: 10px 0;
            border-radius: 5px;
        }
        .university p {
            margin: 0;
        }
        h1 {
            margin-bottom: 20px;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>预测结果</h1>
        <p>你的高考分数是: {{ score }}</p>
        <h2>推荐大学:</h2>
        {% for uni in universities %}
            <div class="university">
                <p>{{ uni.name }}</p>
            </div>
        {% endfor %}
        <form action="/details" method="post">
            <input type="hidden" name="score" value="{{ score }}">
            <input type="hidden" name="universities" value="{{ universities | tojson }}">
            <input type="submit" value="查看详细信息">
        </form>
    </div>
</body>
</html>
